package com.decent.ejfadmin.common.bean;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 销卡利润日报表
 *
 * @author starSky
 * @date 2/24/2018 8:41 AM.
 */
public class ExkDailyReportBean {
    /**
     * 日期
     */
    private Date date;
    /**
     * 商户编号
     */
    private String agentNo;
    /**
     * 运营商
     */
    private Integer productType;
    /**
     * 成功笔数
     */
    private Integer successTotal;
    /**
     * 失败笔数
     */
    private Integer failTotal;
    /**
     * 销卡价格
     */
    private BigDecimal sales = BigDecimal.ZERO;
    /**
     * 收卡价格
     */
    private BigDecimal costs = BigDecimal.ZERO;
    /**
     * 销卡处理费用
     */
    private BigDecimal salesFee=BigDecimal.ZERO;
    /**
     * 代充费用
     */
    private BigDecimal chargeFee = BigDecimal.ZERO;
    /**
     * 利润
     */
    private BigDecimal profit = BigDecimal.ZERO;

    /**
     * 面值
     */
    private BigDecimal totalFace = BigDecimal.ZERO;

    /**
     * 利润率
     */
    private BigDecimal profitRate = BigDecimal.ZERO;
    /**
     * 闲鱼佣金
     */
    private BigDecimal xianyuCommission = BigDecimal.ZERO;

    public BigDecimal getXianyuCommission() {
        return xianyuCommission;
    }

    public void setXianyuCommission(BigDecimal xianyuCommission) {
        this.xianyuCommission = xianyuCommission;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getAgentNo() {
        return agentNo;
    }

    public void setAgentNo(String agentNo) {
        this.agentNo = agentNo;
    }

    public Integer getProductType() {
        return productType;
    }

    public void setProductType(Integer productType) {
        this.productType = productType;
    }

    public Integer getSuccessTotal() {
        return successTotal;
    }

    public void setSuccessTotal(Integer successTotal) {
        this.successTotal = successTotal;
    }

    public Integer getFailTotal() {
        return failTotal;
    }

    public void setFailTotal(Integer failTotal) {
        this.failTotal = failTotal;
    }

    public BigDecimal getSales() {
        return sales;
    }

    public void setSales(BigDecimal sales) {
        this.sales = sales;
    }

    public BigDecimal getCosts() {
        return costs;
    }

    public void setCosts(BigDecimal costs) {
        this.costs = costs;
    }

    public BigDecimal getSalesFee() {
        return salesFee;
    }

    public void setSalesFee(BigDecimal salesFee) {
        this.salesFee = salesFee;
    }

    public BigDecimal getChargeFee() {
        return chargeFee;
    }

    public void setChargeFee(BigDecimal chargeFee) {
        this.chargeFee = chargeFee;
    }

    public BigDecimal getProfit() {
        return profit;
    }

    public void setProfit(BigDecimal profit) {
        this.profit = profit;
    }


    public BigDecimal getTotalFace() {
        return totalFace;
    }

    public void setTotalFace(BigDecimal totalFace) {
        this.totalFace = totalFace;
    }

    public BigDecimal getProfitRate() {
        return profitRate;
    }

    public void setProfitRate(BigDecimal profitRate) {
        this.profitRate = profitRate;
    }

    public ExkDailyReportBean() {
    }

    public ExkDailyReportBean(Integer successTotal, Integer failTotal, BigDecimal sales,
                              BigDecimal costs, BigDecimal salesFee, BigDecimal chargeFee,
                              BigDecimal profit, BigDecimal totalFace, BigDecimal profitRate, BigDecimal xianyuCommission) {
        this.successTotal = successTotal;
        this.failTotal = failTotal;
        this.sales = sales;
        this.costs = costs;
        this.salesFee = salesFee;
        this.chargeFee = chargeFee;
        this.profit = profit;
        this.totalFace = totalFace;
        this.profitRate = profitRate;
        this.xianyuCommission = xianyuCommission;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("ExkDailyReportBean{");
        sb.append("date=").append(date);
        sb.append(", agentNo='").append(agentNo).append('\'');
        sb.append(", productType=").append(productType);
        sb.append(", successTotal=").append(successTotal);
        sb.append(", failTotal=").append(failTotal);
        sb.append(", sales=").append(sales);
        sb.append(", costs=").append(costs);
        sb.append(", salesFee=").append(salesFee);
        sb.append(", chargeFee=").append(chargeFee);
        sb.append(", profit=").append(profit);
        sb.append(", totalFace=").append(totalFace);
        sb.append(", profitRate=").append(profitRate);
        sb.append(", xianyuCommission=").append(xianyuCommission);
        sb.append('}');
        return sb.toString();
    }
}
